<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<style type="text/css">
			.test1 {
			font-size: 50px;;
			line-height:15px;
			color: white;
			border-top-style: none;
			border-right-style: none;
			border-left-style: none;
			border-top-width:0 ;
			border-bottom-color: #000000;
			}
			::-webkit-input-placeholder { /* WebKit browsers */
			  color: white;
			  font-size: 50px;
			}
			input:focus {
			    outline: none;
			    border-bottom:#red;
			}
		</style>
		<script src="js/jquery-3.5.1.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="" style="width:900px; height:1300px; background: url('images/bg.jpg'); background-size: 100% 100%; margin: 0 auto;">
			<div style="padding-left: 300px;padding-top: 650px;width: 300px;" id="">
				<input name="user" style= "background-color:transparent;height: 50px;width: 300px;border-bottom-color: #550000;" type="text"class="test1" placeholder="账号"/>
				<br><br><br>
				<input name="psd" style= "background-color:transparent;height: 50px;width: 300px;border-bottom-color: #550000;" type="text"class="test1" placeholder="密码"/>
			</div>
			<br><br><br><br><br><br><br>
			<img id="login" style="width: 300px;padding-top: 50px;height: 100px;margin-left: 120px;" src="images/btn_login_p.png" onmouseover="this.src='images/btn_login_n.png'" onmouseout="this.src='images/btn_login_p.png'">
			<img style="width: 300px;height: 100px;padding-left: 50px;" src="images/btn_logout_p.png" onmouseover="this.src='images/btn_logout_n.png'" onmouseout="this.src='images/btn_logout_p.png'">
			
		</div>
		<script type="text/javascript">
			$("img[id='login']").click(function(){
				let user = $("input[name='user']").val();
				let psd = $("input[name='psd']").val();
				// user = parseInt(user);
				// psd = parseInt(psd)
				if(user.length ===0&& psd.length === 0){
					alert("至少填点东西吧！");
				}else if(user.length ===0 || psd.length === 0){
					alert("还有一个呢！");
				}else{
					window.location.href="index2.html";
				}
			})
		</script>
	</body>
</html>
